package Hanoi3.disque;

public class Disque implements Empilable<Disque> {
	protected int val;

	public Disque() {
	}

	public void init(int v) {
		val = v;
	}

	public String toString() {
		return "Disque[" + val + "]";
	}

	@Override
	public int compareTo(Disque d) {
		if (d.val < this.val) {
			return 1;
		} else if (d.val > this.val) {
			return -1;
		} else
			return 0;
	}
}
